package com.ktjy.ktmall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ktjy.ktmall.domain.vo.OrderInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderInfoMapper extends BaseMapper<OrderInfo> {
    /**
     * 根据订单编号查询订单信息
     *
     * @return
     */
    public OrderInfo selectOrderInfoByOrderSn(@Param("id") Long id);

    /**
     * 查询所有订单详情信息
     *
     * @param orderInfo
     * @return
     */
    List<OrderInfo> selectOrderInfoList(OrderInfo orderInfo);
}
